var gulp = require("gulp");
var uglify = require("gulp-uglify");
const gulp_babel = require("gulp-babel");
const gulp_minify_css = require('gulp-minify-css');
const gulp_imagemin = require('gulp-imagemin');

gulp.task("_es", function () {
  gulp.src("js/**/*").pipe(gulp_babel({ presets: ['es2015'] })).pipe(uglify()).pipe(gulp.dest("./dict/js"));
});
gulp.task("_minCss", function () {
  gulp.src("css/**/*").pipe(gulp_minify_css()).pipe(gulp.dest("./dict/css"));
});
gulp.task("_imgmin", function () {
  gulp.src("images/**/*").pipe(gulp_imagemin()).pipe(gulp.dest("./dict/images"));
});
gulp.task("_imgmin", function () {
  gulp.src("upload/**/*").pipe(gulp_imagemin()).pipe(gulp.dest("./dict/upload"));
});
